{extend name='admin@main'}

{block name="content"}

{include file='store@goods/form_style'}

<form onsubmit="return false;" id="GoodsForm" data-auto="true" method="post" class='layui-form layui-card' autocomplete="off">
<div class="layui-card-body think-box-shadow padding-left-40">
  <div class="layui-form-item">
    <label class="layui-form-label">兼职标题</label>
    <div class="layui-input-block">
      <input name="title" lay-verify="title" autocomplete="off" placeholder="请输入标题" class="layui-input" type="text">
    </div>
  </div>
    <div class="layui-form-item ">
      
      <div class="layui-inline">
        <label class="layui-form-label">兼职类型</label>
        <div class="layui-input-inline">
          <select class="layui-select" required name="cate_id" lay-search>
              <option value="">请选择兼职类型</option>
              <option value="1">服务员</option>
              <option value="2">导购</option>
              <option value="3">模特</option>
              <option value="4">家教</option>
              <option value="5">外卖员</option>
              <option value="6">摄影</option>
              <option value="7">礼仪</option>
            </select>
        </div>
      </div>

      <div class="layui-inline">
        <label class="layui-form-label">薪资待遇</label>
        <div class="layui-input-inline">
          <input name="email" lay-verify="email" autocomplete="off" class="layui-input" type="text">
        </div>
      </div>
      <div class="layui-inline">
        <label class="layui-form-label">所需人数</label>
        <div class="layui-input-inline">
          <input name="email" lay-verify="email" autocomplete="off" class="layui-input" type="text">
        </div>
      </div>
      <div class="layui-inline">
        <label class="layui-form-label">联系人</label>
        <div class="layui-input-inline">
          <input name="email" lay-verify="email" autocomplete="off" class="layui-input" type="text">
        </div>
      </div>
      <div class="layui-inline">
        <label class="layui-form-label">联系电话</label>
        <div class="layui-input-inline">
          <input name="email" lay-verify="email" autocomplete="off" class="layui-input" type="text">
        </div>
      </div>

    </div>

    <div class="layui-form-item ">

      
      <div class="layui-inline">
        <label class="layui-form-label">兼职省份</label>
        <div class="layui-input-inline">
          <select class="layui-select" required name="cate_id" lay-search>
              <option value="">请选择兼职类型</option>
              <option value="1">服务员</option>
              <option value="2">导购</option>
              <option value="3">模特</option>
              <option value="4">家教</option>
              <option value="5">外卖员</option>
              <option value="6">摄影</option>
              <option value="7">礼仪</option>
            </select>
        </div>
      </div>
      <div class="layui-inline">
        <label class="layui-form-label">兼职地区</label>
        <div class="layui-input-inline">
          <select class="layui-select" required name="cate_id" lay-search>
              <option value="">请选择兼职类型</option>
              <option value="1">服务员</option>
              <option value="2">导购</option>
              <option value="3">模特</option>
              <option value="4">家教</option>
              <option value="5">外卖员</option>
              <option value="6">摄影</option>
              <option value="7">礼仪</option>
            </select>
        </div>
      </div>
      <div class="layui-inline">
        <label class="layui-form-label">兼职区县</label>
        <div class="layui-input-inline">
          <select class="layui-select" required name="cate_id" lay-search>
              <option value="">请选择兼职类型</option>
              <option value="1">服务员</option>
              <option value="2">导购</option>
              <option value="3">模特</option>
              <option value="4">家教</option>
              <option value="5">外卖员</option>
              <option value="6">摄影</option>
              <option value="7">礼仪</option>
            </select>
        </div>
      </div>
      <div class="layui-inline">
        <label class="layui-form-label">详细地址</label>
        <div class="layui-input-inline">
          <input name="email" lay-verify="email" autocomplete="off" class="layui-input" type="text">
        </div>
      </div>
      <div class="layui-inline">
        <label class="layui-form-label">兼职时间</label>
        <div class="layui-input-inline">
          <input name="email" id="test1" autocomplete="off" class="layui-input" type="text">
        </div>
      </div>

    </div>

    <div class="layui-form-item ">

      <div class="layui-inline">
        <label class="layui-form-label">截止时间</label>
        <div class="layui-input-inline">
          <input name="email" id="test2" autocomplete="off" class="layui-input" type="text">
        </div>
      </div>
      
      <div class="layui-inline">
        <label class="layui-form-label">性别</label>
        <div class="layui-input-block">
          <input name="sex" value="男" title="男" checked="" type="radio">
          <input name="sex" value="女" title="女" type="radio">
          <input name="sex" value="禁" title="不限" type="radio">
        </div>
      </div>
      <div class="layui-inline">
        <label class="layui-form-label">是否置顶</label>
        <div class="layui-input-block">
          <input name="sex" value="日结" title="是" checked="" type="radio">
          <input name="sex" value="完结" title="否" type="radio">
        </div>
      </div>
      <div class="layui-inline">
        <label class="layui-form-label">结算方式</label>
        <div class="layui-input-block">
          <input name="sex" value="日结" title="日结" checked="" type="radio">
          <input name="sex" value="完结" title="完结" type="radio">
          <input name="sex" value="月结" title="月结" type="radio">
        </div>
      </div>
      
    </div>

    <div class="layui-form-item ">
      <div class="layui-form-item block">
            <span class="label-required-prev color-green">兼职内容</span>
            <textarea name="content"></textarea>
      </div>
    </div>
    <div class="layui-form-item ">
      <div class="layui-form-item block">
            <span class="label-required-prev color-green">工作要求</span>
            <textarea name="content1"></textarea>
      </div>
    </div>
    <div class="layui-form-item ">
      <div class="layui-form-item block">
            <span class="label-required-prev color-green">兼职福利</span>
            <textarea name="content2"></textarea>
      </div>
    </div>
    <div class="layui-form-item ">
        <button class="layui-btn" type="submit">保存商品</button>
    </div>
</div>
</form>
{/block}

{block name='script'}

<script>
  window.form.render();
  layui.use('laydate', function(){
    var laydate = layui.laydate;
    //常规用法
    laydate.render({
      elem: '#test1'
    });
    laydate.render({
      elem: '#test2'
    });
    
  });

  require(['ckeditor', 'angular'], function () {
     window.createEditor('[name="content"]', {height: 200});
     window.createEditor('[name="content1"]', {height: 200});
     window.createEditor('[name="content2"]', {height: 200});
   });
</script>

{/block}